<?php

date_default_timezone_set("UTC");

$appDir = __DIR__ . "/Application";
$frameworkDir = __DIR__ . "/Fluency";
$baseUrl = $_SERVER["SCRIPT_NAME"];

require_once "$frameworkDir/Utils/ClassLoader.php";
spl_autoload_register(new Fluency\Utils\ClassLoader("Fluency", $frameworkDir));
spl_autoload_register(new Fluency\Utils\ClassLoader("Application", $appDir));

$app = new Application\Application($appDir, $frameworkDir, $baseUrl);
$app->run(@$_SERVER["PATH_INFO"]);